//
//  ViewController.swift
//  LikeContainer2
//
//  Created by 劢克科技 on 2019/5/29.
//  Copyright © 2019 meckey. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
        
        // 注册长按点赞按钮
        likeContainer.register(view: button)
    }

    //MARK: - Getter
    let likeContainer = LikeContainer2()
    let button = UIButton(type: .system)
    
    fileprivate func setupUI() {
        view.addSubview(button)
        button.setTitle("长按点赞", for: .normal)
        button.bounds = CGRect(x: 0, y: 0, width: 100, height: 20)
        button.center = view.center
    }
}

